{% extends 'myadmin/base/obj_list.html' %}
{% load static %}
{% block search_form %}

{% endblock %}
{% block add_button %}
     <button type="button" class="btn btn-primary btn-sm"
                            data-url="{% url 'myadmin:cate_type_add' %}">添加
                    </button>
{% endblock %}

{% block table_content %}

    <tr>
{#<th>编辑</th>#}
{#        <th>#</th>#}
        <th>课程类别</th>
        <th>操作</th>
        <th>编辑</th>
    </tr>
    {% for obj in page_obj %}
        <tr>



            <td style="width: 80px" data-name="{{obj.id}}" data-url="{% url 'myadmin:cate_list' obj.id %}"><a href="#">{{ obj.name }}</a></td>


            <td>
                <button class="btn btn-xs btn-danger btn-del" data-name="{{ obj.name}}" data-id="{{ obj.id}}">删除</button>
{#                <button class="btn btn-xs btn-warning btn-edit" data-url="{% url 'myadmin:cate_list' obj.id %}" data-name="{{ obj.name}}" data-id="{{ obj.id}}">编辑</button>#}
            </td>
                    <td style="width: 40px" data-name="{{obj.id}}" data-url="{% url 'myadmin:cate_type_update' obj.id %}"><a href="#">编辑</a></td>
        </tr>
    {% endfor %}
          <div class="modal modal-danger fade" id="modal-delete">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">警告</h4>
                </div>
                <div class="modal-body">
                    <p>One fine body&hellip;</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-outline pull-left" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-outline delete-confirm">确定</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <script src="{% static 'js/myadmin/coursecategorytype/coursecategorytype.js' %}"></script>

{% endblock %}
